package com.exigenservices.practice.roadcompanion.entity;

import javax.persistence.*;
import java.awt.*;

/**
 * Created with IntelliJ IDEA.
 * User: Konstantin
 * Date: 15.07.13
 * Time: 14:56
 * To change this template use File | Settings | File Templates.
 */

@Entity
@Table(name = "points")
public class Points {

    @Column(name = "ID")
    private Long ID;

    @ManyToOne
    @JoinColumn(name = "route")
    private UserRoutes route;

    @Column(name = "point")
    private Point point;

    @Column(name = "point_number")
    private  Long point_number;

    @Id
    @GeneratedValue
    public Long getID(){
        return ID;
    }
    protected void setID(Long id){
      this.ID= id;
    }

    public Long getRoute(){
        return route.getID();
    }
    public void setRoute(Long route){
        this.route.setID(route);
    }

    public Point getPoint(){
        return point;
    }
    public void setPoint(Point point){
        this.point = point;
    }

    public Long getPoint_number(){
        return point_number;
    }
    public void setPoint_number(Long point_number){
        this.point_number = point_number;
    }
}
